package dishiyizhou;

import java.util.Scanner;

class Account{
	private int balance;
	
	public Account(int balance) {
		this.balance = balance;
	}

	public int getBalance() {
		return balance;
	}

	public void setBalance(int balance) {
		this.balance = balance;
	}
	synchronized void deposit(int money){
		this.balance += money;
	}
	synchronized void withdraw(int money){
		this.balance -= money;
	}
}

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
